package com.cyx.exam.mapper;

import com.cyx.exam.entity.QuAnswer;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
 * <p>
 * 候选答案 Mapper 接口
 * </p>
 *
 * @author cyx
 * @since 2021-03-09
 */
public interface QuAnswerMapper extends BaseMapper<QuAnswer> {

    @Select("select id from qu_answer where qu_id=#{quId} and is_right=1")
    public List<Integer> selectRightAnswer(Integer quId);
}
